<template>
  <ConfigProvider :locale="getAntdLocale">
    <div id="app">
      <router-view />
    </div>
  </ConfigProvider>
</template>
<script lang="ts" setup>
import { ConfigProvider } from 'ant-design-vue'
import { useTitle } from '/@/hooks/web/useTitle'
import { useLocale } from '/@/locales/useLocale'

import 'dayjs/locale/zh-cn'
// support Multi-language
const { getAntdLocale } = useLocale()

// Listening to page changes and dynamically changing site titles
useTitle()
</script>
